package com.eight.cloud.openapi.interfaces;

import com.eight.cloud.openapi.annotations.OpenApi;

import javax.servlet.http.HttpServletRequest;

/**
 * @InterfaceName: LogRecordService
 * @Author: TXC
 * @Date: 2024-11-15 14:55
 **/
public interface LogRecordService {
    default void doBefore(HttpServletRequest request, OpenApi annotation, String body, Class<?> controller) {}
    default void doSuccess(HttpServletRequest request, OpenApi annotation, String body, Class<?> controller) {}
    default void doException(HttpServletRequest request, OpenApi annotation, String body, Class<?> controller, Exception e) {}
}
